import axios from './axios'
import resfulParamsToUrl from './resfulParamsToUrl'

// 添加
export const banneInsert = params => {
	return axios
		.post(resfulParamsToUrl('/sys/auth/tOrgBanne/insert', params), params)
		.catch(() => {})
}
// 修改
export const banneUpdate = params => {
	return axios
		.post(resfulParamsToUrl('/sys/auth/tOrgBanne/update', params), params)
		.catch(() => {})
}
// 删除
export const banneDelete = params => {
	return axios
		.post(resfulParamsToUrl('/sys/auth/tOrgBanne/delete', params), params)
		.catch(() => {})
}
// 分页查询
export const getbannePageList = params => {
	return axios
		.post(resfulParamsToUrl('/sys/auth/tOrgBanne/pageList', params), params)
		.catch(() => {})
}
// 查询对象
export const getbanneModel = params => {
	axios.prototype._loading_ = false
	return axios
		.post(resfulParamsToUrl('/sys/auth/tOrgBanne/getModel', params), params)
		.catch(() => {})
}
